package com.xqboss.apps.dto.punch;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * <p>
 *     修改用户打卡配置
 * </p>
 * @author Trent
 * @date 2023/8/15
 */
@Data
@ApiModel
public class UserAddSlotDto {

    @ApiModelProperty(value = "卡槽id")//不为空表示添加到指定卡槽，否则为快捷添加
    private Long slotId;

    @ApiModelProperty(value = "用户持有NFT ID", required = true)
    @NotNull(message = "用户持有NFT ID不能为空")
    @Size(min = 1, message = "至少添加一个装备")
    private List<Long> userNftId;

    @ApiModelProperty(value = "是否全部卸下")
    private Boolean isAllUnload;
}
